package org.akomantoso.core.io.util.group;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

import org.akomantoso.core.data.AffectedDocument;
import org.akomantoso.core.data.Change;
import org.akomantoso.core.data.group.AmendmentInline;
import org.akomantoso.core.io.util.Instantiator;

public final class AmendmentInlineGroup {

	private AmendmentInlineGroup() {
	}

	public static final Map<String, Instantiator<AmendmentInline>> MAP;

	static {

		Map<String, Instantiator<AmendmentInline>> temp = new HashMap<String, Instantiator<AmendmentInline>>();

		// change
		temp.put(Change.ELEMENT, new Instantiator<AmendmentInline>() {
			public Change instantiate() {
				return new Change();
			}
		});

		// affectedDocument
		temp.put(AffectedDocument.ELEMENT, new Instantiator<AmendmentInline>() {
			public AffectedDocument instantiate() {
				return new AffectedDocument();
			}
		});

		MAP = Collections.unmodifiableMap(temp);

	}
}
